package com.mjh.service.impl;

import com.mjh.bean.Role;
import com.mjh.bean.UserRole;
import com.mjh.mapper.RoleMapper;
import com.mjh.mapper.UserRoleMapper;
import com.mjh.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Autowired
    private UserRoleMapper userRoleMapper;
    @Override
    public List<Role> queryAllRoles() {
        return roleMapper.selectAll();
    }


}
